Skip to content

Conversation

CarterLi
Copy link
Member

@CarterLi CarterLi commented Sep 5, 2025

No description provided.

CarterLi and others added 30 commits August 30, 2025 13:31
…er supported

... and provides guidance on transitioning to JSON config
@CarterLi CarterLi requested a review from Copilot September 5, 2025 02:49
Copilot

This comment was marked as outdated.

@CarterLi CarterLi requested a review from Copilot September 5, 2025 03:09
Copilot

This comment was marked as outdated.

@CarterLi CarterLi requested a review from Copilot September 5, 2025 04:38
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This release bumps the version to v2.52.0 and introduces significant improvements to display detection, configuration handling, and Android platform support.

  • Adds scale factor detection for X11 displays and introduces fraction trailing zeros configuration
  • Removes dependency on libxfconf in favor of D-Bus for XFCE-related detection
  • Enhances Android platform support with X11-related detection capabilities

Reviewed Changes

Copilot reviewed 55 out of 55 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tests/strbuf.c Updates test cases to use new trailingZeros parameter in ffStrbufAppendDouble
src/util/FFstrbuf.h Adds boolean trailingZeros parameter to ffStrbufAppendDouble function
src/util/FFstrbuf.c Implements trailing zeros behavior in double formatting
src/options/display.h Adds FFFractionTrailingZerosType enum for fraction formatting control
src/options/display.c Implements parsing and validation for new fraction formatting options
src/modules/localip/localip.c Migrates from printf formatting to ffStrbufAppendDouble for network speeds
src/modules/display/display.c Updates display formatting to show scale factor instead of scaled resolution
src/modules/btrfs/btrfs.c Changes allocation handling to support RAID profiles instead of simple duplication
src/logo/logo.c Fixes width calculation for chafa logos
src/fastfetch.c Adds module option parsing to command line processing
CMakeLists.txt Updates version and Android platform dependencies
Comments suppressed due to low confidence (2)

src/util/FFstrbuf.c:1

  • The logic for handling trailing zeros is inverted. When trailingZeros is true, the code removes trailing zeros, but it should preserve them. When trailingZeros is false, it should remove trailing zeros but only handles the ".0" case.
#include "FFstrbuf.h"

src/detection/btrfs/btrfs_linux.c:1

  • The copies field may be uninitialized when accessed here since the allocation detection happens later in the function. This could lead to using garbage values for multiplication.
#include "btrfs.h"

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

options->percentWidth = 0;

options->freqNdigits = 2;
options->freqSpaceBeforeUnit = FF_SPACE_BEFORE_UNIT_DEFAULT;
Copy link
Preview

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The default value change from -1 to 2 should be documented in the code comment to explain the breaking change in behavior for fraction digit display.

Copilot uses AI. Check for mistakes.

@CarterLi CarterLi merged commit de18a07 into master Sep 5, 2025
43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants